export default {
    data() {
        return {
            id:0
        };
    },
    beforeCreate () {
      console.log("beforeCreate");
    },
    beforeUpdate() {
        console.log("beforeUpdate");
    },
    beforeMount() {
        console.log("beforeMount");
    },
    updated() {
        console.log("updated");
    },
    beforeDestroy() {
        console.log("beforeDestroy");

    },
    destroyed() {
        console.log("destroyed");
    },
    mounted() {
        console.log("mounted");
        this.aa();
    },
    methods:{
        aa(){
            console.log(11);
            var that = this;
            that.id = that.$route.params.id;

            document.title = that.id;
        },
        refresh(){
            this.aa();
        }
    },
    watch: {
        "$route": "refresh"
    },
};
